/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVA-Data-Structures-and-Algorithms PROJECT
 * All Rights Reserved.
 */

package 插入.数组;


import 工具.Unit;

public class InsertTest {
    public static void main(String[] args) {
        for (int i : Insert.sort(Unit.intArr())) {
            System.out.print(i + " ");
        }
        System.out.println("\n");
        for (int i : Insert.sortReversed(Unit.intArr())) {
            System.out.print(i + " ");
        }

//        int[] arr = Unit.randomArr();
//
//        long s = System.currentTimeMillis();
//        Insert.sort(arr);
//        long e = System.currentTimeMillis();
//        System.out.println(e - s + "ms");// 386ms 390ms 407ms 0.4秒左右！！！


    }
}